home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- yit = Math.floor(Math.random() * 471) + 30;
- if(this._x < -600)
- {
- this._x = 900;
- this._y = _root.depth._y + yit;
- die = 1;
- this.gotoAndPlay(1);
- }
- if(this._x > 1000)
- {
- this._x = -400;
- this._y = _root.depth._y + yit;
- die = 1;
- this.gotoAndPlay(1);
- }
- this._x += _global.xgo;
- this._y += _global.ygo;
- if(die == 1)
- {
- if(_root.player.eat.hitTest(this.eat))
- {
- die = 0;
- reat = new Sound();
- reat.attachSound("sfxreload");
- reat.start(0,1);
- this.gotoAndPlay("die");
- _root.tools.powerup1.gotoAndStop(_root.tools.powerup1._currentframe + 1);
- scoreworth = 50;
- multiplyer = 1;
- if(_root.tools.powerup1._currentframe > 10)
- {
- multiplyer = 2;
- }
- scoreity = Math.round(scoreworth * multiplyer);
- _root.tools.instascore.text = "+" + scoreity;
- _root.tools.instblock._alpha = 0;
- _global.scoreit = _global.scoreit * 1 + scoreity;
- _global.boost += scoreity / 30;
- _root.tools.bar1.gotoAndStop(_global.boost + 1);
- }
- }
- }
-